import { getsharing,getPassTotal,getPasslist } from '@/api/passenger'
export default {
    namespaced: true, // 封闭
    state: {},
    mutations: {},
    getters: {},
    actions: {
    async getsharing(context, payload) {
        try {
          const { data } = await getsharing(payload)
          //console.log(data)
          return data
        } catch (err) {
          console.log(err)
          Message.error("该市场不存在客流采集设备")
        }
      },

    async getPassTotal(context, payload) {
        try {
          const { data } = await getPassTotal(payload)
          //console.log(data)
          return data
        } catch (err) {
          console.log(err)
        }
      },
      async getPasslist(context, payload) {
        try {
          const { data } = await getPasslist(payload)
          //console.log(data)
          return data
        } catch (err) {
          console.log(err)
        }
      },
}
}